/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.begonza;

/**
 *
 * @author bgonzales
 */
public class DataElement {

    private String name = null;
    private Enums.DbTypeMapper dbTypeMapper = null;
    private Enums.javaTypeName javaTypeName = null;
    private String domainPropertyName = null;
    private Boolean isPrimaryKey = false;
    
    public DataElement()
    {

    }

    public DataElement(String name, Enums.DbTypeMapper dbTypeMapper, Enums.javaTypeName javaTypeName, String domainPropertyName, Boolean isPrimaryKey)
    {
        this.name = name;
        this.dbTypeMapper = dbTypeMapper;
        this.javaTypeName = javaTypeName;
        this.domainPropertyName = domainPropertyName;
        this.isPrimaryKey = isPrimaryKey;    }

    public Boolean getPrimaryKey() {
        return isPrimaryKey;
    }

    public void setPrimaryKey(Boolean primaryKey) {
        isPrimaryKey = primaryKey;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Enums.DbTypeMapper getDbTypeMapper() {
        return dbTypeMapper;
    }

    public void setDbTypeMapper(Enums.DbTypeMapper dbTypeMapper) {
        this.dbTypeMapper = dbTypeMapper;
    }

    public Enums.javaTypeName getJavaTypeName() {
        return javaTypeName;
    }

    public void setJavaTypeName(Enums.javaTypeName javaTypeName) {
        this.javaTypeName = javaTypeName;
    }

    public String getDomainPropertyName() {
        return domainPropertyName;
    }

    public void setDomainPropertyName(String domainPropertyName) {
        this.domainPropertyName = domainPropertyName;
    }
}
